package com.ndp.fb.rdb.model.customaudience;

import com.ndp.fb.rdb.annotation.Id;
import com.ndp.fb.rdb.annotation.Table;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;

/**
 * Created by Elvis.Xiong on 12/9/2015.
 */
@Setter
@Getter
@NoArgsConstructor
@Table("custom_audience_template")
public class CustomAudienceTemplate implements Serializable {
    //自定义受众模板编号
    @Id
    private Long id;

    //自定义受众名称 column:name
    private String name;

    //规模 column:scale
    private String scale;

    //受众规模在facebook中接近值 column:approximate_count
    private Long approximateCount;

    //column:user_id
    private String userId;

    //受众类型 column:audience_type
    private String audienceType;

    //导入类型 column:imported_type
    private String importedType;

    //数据源类型 column:data_source_type
    private String dataSourceType;

    //数据源子类型 column:data_source_subtype
    private String dataSourceSubtype;

    //描述 column:description
    private String description;

    //自定受众子类型 column:subtype
    private String subtype;

    //保留天数 column:retention_days
    private Integer retentionDays;

    //源自定义受众ID column:origin_id
    //源自定义受众ID，如果origin_type=page 表示主页id 如果origin_type=custom_audience 表示自定义模板id
    private Long originId;

    //相似受众源类型：page、custom_audience column:origin_type
    private String originType;

    //相似受众国家吗 column:country_code
    private String countryCode;

    //相似受众1-20 表示1%-20% column:custom_ratio
    private Integer customRatio;

    //创建时间 column:time_created
    private Long timeCreated;

    //最后更新时间 column:time_updated
    private Long timeUpdated;

    //内容更新时间 column:time_content_updated
    private Long timeContentUpdated;

    //是否删除 defuale is 0 is_delete
    private Integer isDelete;
}
